{template 'member', 'header'}
<script type="text/javascript">
<!--
	var charset = '{CHARSET}';
	function selecttype(val){
		var spacetype = $('#spacetype').val();
		$.post("index.php?m=member&c=designer&a=get_space_type", {
			id:val
		}, function(data) {
			$('#spacetype').html("");
			$('#spacetype').html(data);
		}
		);
	}
	function selectcity(val){
		var area = $('#area').val();
		
		$.post("index.php?m=member&c=index&a=getarea", {
			id:val
		}, function(data) {
			var d = '<select name="info[area]">'+data.str+'</select>';
			$('#city_letter').val(data.letter);
			$('#area').html("");
			$('#area').html(d);
			
		},"json"
		);
	}
//-->
</script>
<link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
<script language="javascript" type="text/javascript" src="{JS_PATH}content_addtop.js"></script>
<div id="memberArea">
	{template 'member', 'left'}
	<div class="col-auto">
		<div class="col-1 ">
			<h5 class="title">{L('online_publish')}</h5>
			<div class="content">
				
				
			</div>
			<form name="myform" action="{APP_PATH}index.php?m=member&c=business&a=business_info" method="post" id="myform">
<table width="100%" cellspacing="0" class="table_form">
    
     <tr>
       <th>商家名称：</th>
       <td><input name="info[business_name]" type="text" id="name" size="30" value="{$member['business_name']}"  class="input-text"/> </td>
     </tr>
    
     
   
      <tr>
       <th>联系人：</th>
       <td><input name="info[contact]" type="text" id="subject" size="30" value="{$member['contact']}"  class="input-text"/></td>
     </tr>
      <tr>
       <th>联系人电话：</th>
       <td><input name="info[phone]" type="text" id="phone" size="30" value="{$member['phone']}"  class="input-text"/></td>
     </tr>
     <tr>
       <th>QQ：</th>
       <td><input name="info[qq]" type="text" id="subject" size="30" value="{$member['qq']}"  class="input-text"/></td>
     </tr>
     <tr>
       <th>联系地址：</th>
       <td><input name="info[address]" type="text" id="subject" size="30" value="{$member['address']}"  class="input-text"/></td>
     </tr>
     <tr>
       <th>企业介绍：</th>
       <td>
       <textarea cols="40" rows="8" name="info[business_info]">{$member['business_info']}</textarea>
     </tr>
     
     <tr>
       <th>区域：</th>
       <td>
        <input type="hidden" value="" name="info[city_letter]" id="city_letter">
		{pc:member action="get_city"  return="city"}
       		<select name="info[city]"  onchange="selectcity(this.value);">
				<option value="0">请选择</option>
				{loop $city $k $v}
					<option value="{$v['linkageid']}">{$v['name']}</option>
				{/loop}
			</select>
		{/pc}
				<span id="area">
				<select>
					<option value="0" >请选择</option>
				</select>
				</span>
				</td>
     </tr>
     
     <tr>
       <td></td>
       <td colspan="2"><label>
         <input type="submit" name="dosubmit" id="dosubmit" value="确 定" class="button"/>
         </label></td>
     </tr>
   </table>
   </form>
			<span class="o1"></span><span class="o2"></span><span class="o3"></span><span class="o4"></span>
		</div>
	</div>
</div>
<div class="clear"></div>
<script type="text/javascript"> 

{template 'member', 'footer'}